package Controller;

import java.util.ArrayList;

import com.opensymphony.xwork2.ActionSupport;

import EntityBean.GovOffice;

public class CheckboxAction extends ActionSupport{

	private static final long serialVersionUID = 1L;
	private boolean includeInActive;
	
	private ArrayList<GovOffice> listGov;	
	public String execute()
	{
		ControllerDB cont = new ControllerDB();
		 if(includeInActive){
			 listGov = cont.getAll();
			 
		 }else{
			 listGov = cont.getListGov();
		 }
		 return "success";
	}
	public boolean isIncludeInActive() {
		return includeInActive;
	}

	public void setIncludeInActive(boolean includeInActive) {
		this.includeInActive = includeInActive;
	}

	public ArrayList<GovOffice> getListGov() {
		return listGov;
	}

	public void setListGov(ArrayList<GovOffice> listGov) {
		this.listGov = listGov;
	}

	
}
